<template>
  <div></div>
</template>
<script>
import { defineComponent, unref } from 'vue'
import { useRouter } from 'vue-router'
export default defineComponent({
  name: 'RedirectComp',
  setup() {
    const { currentRoute, replace } = useRouter()
    const { params, query } = unref(currentRoute)
    const { path } = params
    console.log('redirect>>>>>>>>>', path)
    replace({
      path: path,
      query,
    })
    return {}
  },
})
</script>
